package thirdpart.checksum;

public class ByteCheckSum implements ICheckSum {

    @Override
    public byte getCheckSum(byte[] data) {
        byte sum =0;
        for (byte b : data) {
            sum^=b;
        }
        return sum;
    }
}
